const Sequelize = require('sequelize')
const sequelize = new Sequelize(
    'practical_project',
    'root',
    'root',
    {
        port: '3306',
        host: 'localhost',
        dialect: 'mysql'
    }
)
sequelize.authenticate().then(() => {
    console.log('数据库连接成功');
}).catch((err) => {
    console.log('数据库连接失败',err);
})

module.exports=sequelize